FROM python:3.10.13
WORKDIR /app

# 安装 AWS CLI
RUN apt-get update && apt-get install -y awscli

# 设置 AWS CLI 配置
RUN aws configure set aws_access_key_id "AKIA3N25E2W7OEPFE7PA"
RUN aws configure set aws_secret_access_key "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"
RUN aws configure set region "ap-northeast-2"

COPY . /app
# RUN pip install -r requirements.txt  -i https://pypi.douban.com/simple
RUN pip install -r requirements.txt -i https://pypi.douban.com/simple

EXPOSE 5100
CMD ["python", "run.py"]
